Regression for Linguists
  • D. Palleschi
  1. Part I: Foundations
  2. 4  Multiple Regression
  • Overview
    • Course overview
    • Syllabus
    • Resources and Set-up
  • Part I: Foundations
    • 1  Understanding straight lines
    • 2  Simple linear regression
    • 3  Continuous predictors
    • 4  Multiple Regression
    • 5  Categorical predictors
    • 6  Logistic regression
  • Part II: Mixed models
  • Reports

Table of contents

  • Set-up environment
  • 5 Summary
    • Important terms
  • 6 Task

4  Multiple Regression

Regression for Linguists

Author
Affiliation

Daniela Palleschi

Humboldt-Universität zu Berlin

Published

October 2, 2023

Learning Objectives

Today we will learn…

Set-up environment

# suppress scientific notation
options(scipen=999)

We’ll also need to load in our required packages. Hopefully you’ve already install the required packages (if not, go to Chapter 3).

# load libraries
pacman::p_load(
               tidyverse,
               here,
               broom,
               lme4,
               janitor,
               languageR)

5 Summary

  • we saw that the equation for a straight line boils down to its intercept and slope

  • we fit our first linear model with a categorical predictor

Important terms

term description/other terms

Learning Objectives

Today we learned…

6 Task

Literaturverzeichnis

3  Continuous predictors
5  Categorical predictors
Source Code
---
title: "Multiple Regression"
subtitle: "Regression for Linguists"
author: "Daniela Palleschi"
institute: Humboldt-Universität zu Berlin
# footer: "Lecture 1.1 - R und RStudio"
lang: en
date: "`r Sys.Date()`"
format:
  html:
    number-sections: true
    number-depth: 3
    toc: true
    code-overflow: wrap
    code-tools: true
    self-contained: true
bibliography: references.bib
csl: apa.csl
execute:
  eval: true
  echo: true
  message: false
  error: false
  warning: false
  fig-align: "center"
  fig-asp: .618
---

# Learning Objectives {.unnumbered .unlisted}

Today we will learn...


# Set-up environment  {.unnumbered}

```{r}
# suppress scientific notation
options(scipen=999)
```

We'll also need to load in our required packages. Hopefully you've already install the required packages (if not, go to @sec-software).

```{r}
# load libraries
pacman::p_load(
               tidyverse,
               here,
               broom,
               lme4,
               janitor,
               languageR)
```

```{r}
#| echo: false

# extra packages for the lecture notes/slides
pacman::p_load(
               patchwork,
               knitr,
               kableExtra)
```


# Summary

-   we saw that the equation for a straight line boils down to its intercept and slope

-   we fit our first linear model with a categorical predictor

## Important terms {.unnumbered .smaller}

```{r}
#| echo: false
tribble(
 ~"term", ~"description/other terms",
 
) %>% kable() %>% kable_styling()
```


# Learning Objectives {.unnumbered .unlisted}

Today we learned...


# Task



# Literaturverzeichnis {.unlisted .unnumbered visibility="uncounted"}

::: {#refs custom-style="Bibliography"}
:::